package com.example.nacoscloudconsumer.controller;
import com.example.nacoscloudconsumer.service.ZooService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.Random;

@RestController
public class ZooController {

    @Autowired
    ZooService ZooService;

    @RequestMapping("/createNode")
    public String createNode(){
        return ZooService.createNode();
    }

    @RequestMapping("/deleteNode")
    public String deleteNode(){
        return ZooService.deleteNode();
    }

    @RequestMapping("/getNodes")
    public String getNodes(){
        return ZooService.getNodes();
    }

    @RequestMapping("/getData")
    public String getData(){
        return ZooService.getData();
    }


}
